package com.yangle.shell.bean;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单详情对象
 * Author: yangle
 * Create Data: 2020/12/4
 */
@Entity
@Data
@DynamicUpdate
public class OrderDetail {

    @Id
    /**订单详情id*/
    private  String detailId;
    /**订单id*/
    private  String orderId;
    /**商品id*/
    private  String productId;
    /**商品名称*/
    private  String productName;
    /**商品价格*/
    private BigDecimal productPrice;
    /**商品数量*/
    private  Integer productQuantity;
    /**商品图片*/
    private  String productIcon;

    private Date createTime;

    private  Date updateTime;
}
